Simplify title and heading
authorWilliam Jon McCann <jmccann@redhat.com>
Thu, 18 Nov 2010 22:17:23 +0000 (17:17 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 23 Nov 2010 15:51:40 +0000 (16:51 +0100)
gtk/gtkopenwithdialog.c

index 633ab2e1e1116a8a189e4eb64d2de797bb1f6bb3..c3b069cf5d6735d4d242b33ff3628abe7fe0098e 100644 (file)
@@ -229,28 +229,27 @@ get_extension (const char *basename)
 static void
 set_dialog_properties (GtkOpenWithDialog *self)
 {
-  char *label, *emname, *name, *extension, *description;
+  char *label, *name, *extension, *description;
+  PangoFontDescription *font_desc;
 
   name = NULL;
   extension = NULL;
   label = NULL;
-  emname = NULL;
   description = NULL;
 
   if (self->priv->gfile != NULL)
     {
       name = g_file_get_basename (self->priv->gfile);
-      emname = g_strdup_printf ("<i>%s</i>", name);
       extension = get_extension (name);
     }
 
   description = g_content_type_get_description (self->priv->content_type);
-  gtk_window_set_title (GTK_WINDOW (self), _("Choose an Application"));
+  gtk_window_set_title (GTK_WINDOW (self), "");
 
-  if (emname != NULL)
+  if (name != NULL)
     {
       /* Translators: %s is a filename */
-      label = g_strdup_printf (_("Open %s with:"), emname);
+      label = g_strdup_printf (_("Select an application to open \"%s\":"), name);
     }
   else
     {
@@ -260,13 +259,17 @@ set_dialog_properties (GtkOpenWithDialog *self)
                               self->priv->content_type : description);
     }
 
+  font_desc = pango_font_description_new ();
+  pango_font_description_set_weight (font_desc, PANGO_WEIGHT_BOLD);
+  gtk_widget_modify_font (self->priv->label, font_desc);
+  pango_font_description_free (font_desc);
+
   gtk_label_set_markup (GTK_LABEL (self->priv->label), label);
 
   g_free (label);
   g_free (name);
   g_free (extension);
   g_free (description);
-  g_free (emname);
 }
 
 static void